package com.baidu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName tb_shop_audit
 */
@TableName(value ="tb_shop_audit")
@Data
public class TbShopAudit implements Serializable {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 店铺名称
     */
    private String shopName;

    /**
     * 公司手机
     */
    private String mobile;

    /**
     * 公司电话
     */
    private String phone;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 联系人  姓名
     */
    private String linkman;

    /**
     * 联系人QQ
     */
    private String linkmanQq;

    /**
     * 联系人手机
     */
    private String linkmanPhone;

    /**
     * 联系人邮箱
     */
    private String linkmanEmail;

    /**
     * 营业执照
     */
    private String openLicense;

    /**
     * 税务登记证号
     */
    private String tax;

    /**
     * 组织机构代码证号
     */
    private String organization;

    /**
     * 法定代表人
     */
    private String legalName;

    /**
     * 法定代表人身份证号
     */
    private String legalNumber;

    /**
     * 开户行名称
     */
    private String bankName;

    /**
     * 开户行支行
     */
    private String bankBranch;

    /**
     * 银行账号
     */
    private String branchNumber;

    /**
     * 0 未通过 1通过 2待审核 3已被关闭
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbShopAudit other = (TbShopAudit) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getShopName() == null ? other.getShopName() == null : this.getShopName().equals(other.getShopName()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getLinkman() == null ? other.getLinkman() == null : this.getLinkman().equals(other.getLinkman()))
            && (this.getLinkmanQq() == null ? other.getLinkmanQq() == null : this.getLinkmanQq().equals(other.getLinkmanQq()))
            && (this.getLinkmanPhone() == null ? other.getLinkmanPhone() == null : this.getLinkmanPhone().equals(other.getLinkmanPhone()))
            && (this.getLinkmanEmail() == null ? other.getLinkmanEmail() == null : this.getLinkmanEmail().equals(other.getLinkmanEmail()))
            && (this.getOpenLicense() == null ? other.getOpenLicense() == null : this.getOpenLicense().equals(other.getOpenLicense()))
            && (this.getTax() == null ? other.getTax() == null : this.getTax().equals(other.getTax()))
            && (this.getOrganization() == null ? other.getOrganization() == null : this.getOrganization().equals(other.getOrganization()))
            && (this.getLegalName() == null ? other.getLegalName() == null : this.getLegalName().equals(other.getLegalName()))
            && (this.getLegalNumber() == null ? other.getLegalNumber() == null : this.getLegalNumber().equals(other.getLegalNumber()))
            && (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName()))
            && (this.getBankBranch() == null ? other.getBankBranch() == null : this.getBankBranch().equals(other.getBankBranch()))
            && (this.getBranchNumber() == null ? other.getBranchNumber() == null : this.getBranchNumber().equals(other.getBranchNumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getShopName() == null) ? 0 : getShopName().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getLinkman() == null) ? 0 : getLinkman().hashCode());
        result = prime * result + ((getLinkmanQq() == null) ? 0 : getLinkmanQq().hashCode());
        result = prime * result + ((getLinkmanPhone() == null) ? 0 : getLinkmanPhone().hashCode());
        result = prime * result + ((getLinkmanEmail() == null) ? 0 : getLinkmanEmail().hashCode());
        result = prime * result + ((getOpenLicense() == null) ? 0 : getOpenLicense().hashCode());
        result = prime * result + ((getTax() == null) ? 0 : getTax().hashCode());
        result = prime * result + ((getOrganization() == null) ? 0 : getOrganization().hashCode());
        result = prime * result + ((getLegalName() == null) ? 0 : getLegalName().hashCode());
        result = prime * result + ((getLegalNumber() == null) ? 0 : getLegalNumber().hashCode());
        result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode());
        result = prime * result + ((getBankBranch() == null) ? 0 : getBankBranch().hashCode());
        result = prime * result + ((getBranchNumber() == null) ? 0 : getBranchNumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", companyName=").append(companyName);
        sb.append(", shopName=").append(shopName);
        sb.append(", mobile=").append(mobile);
        sb.append(", phone=").append(phone);
        sb.append(", address=").append(address);
        sb.append(", linkman=").append(linkman);
        sb.append(", linkmanQq=").append(linkmanQq);
        sb.append(", linkmanPhone=").append(linkmanPhone);
        sb.append(", linkmanEmail=").append(linkmanEmail);
        sb.append(", openLicense=").append(openLicense);
        sb.append(", tax=").append(tax);
        sb.append(", organization=").append(organization);
        sb.append(", legalName=").append(legalName);
        sb.append(", legalNumber=").append(legalNumber);
        sb.append(", bankName=").append(bankName);
        sb.append(", bankBranch=").append(bankBranch);
        sb.append(", branchNumber=").append(branchNumber);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}